package com.xywy.tangandroid.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.xywy.tangandroid.R;
import com.xywy.tangandroid.base.BaseActivity;
import com.xywy.tangandroid.util.UIUtil;

public class BloodRecordAct extends BaseActivity {
	private RelativeLayout left_img;
	private TextView middle_title;
	private RelativeLayout data_entry_rel;
	private RelativeLayout baby_area_rel;
	@Override
	protected void initView(Bundle savedInstanceState) {
    setContentView(R.layout.act_blood_record);
    left_img = (RelativeLayout) findViewById(R.id.left_img);
	middle_title = (TextView) findViewById(R.id.middle_title);
	middle_title.setText(getResources().getString(R.string.blood_record));
	
	data_entry_rel = (RelativeLayout)findViewById(R.id.data_entry_rel);
	baby_area_rel = (RelativeLayout)findViewById(R.id.baby_area_rel);
	}

	@Override
	protected void initListener() {
		left_img.setOnClickListener(this);
		data_entry_rel.setOnClickListener(this);
		baby_area_rel.setOnClickListener(this);
	}

	@Override
	protected void initData() {

	}
  @Override
public void onClick(View v) {
	super.onClick(v);
	switch (v.getId()) {
	case R.id.left_img:
		finish();
		break;
	case R.id.data_entry_rel:
		Intent intent =new Intent(this, HandUploadAct.class);
		startActivity(intent);
		finish();
		break;
	case R.id.baby_area_rel:
//		Intent intent2=new Intent(this, KangBaobeiFrameAct.class);
//		startActivity(intent2);
		UIUtil.showToast(context, "近期上线，敬请期待");
		break;
	default:
		break;
	}
}
}
